package com.example.chapter01;

public class Chapter06 {
    public static void main(String[] args){
        char c1 = 'A';
        char c2 = '中';

        //String s = "ab\\c\"x\ny\tz"; // 包含7个字符: a, b, c, ", x, y, z
        //System.out.println(s);

        String s1 = "Hello";
        String s2 = "world";
        //String s = s1 +" "+ s2 + "!";
        //System.out.println(s); // Hello world!

        int age = 25;
        //String s = "age is " + age;
        //System.out.println(s); // age is 25

        //String s = "hello";
        //System.out.println(s); // 显示 hello
        //s = "world";
        //System.out.println(s); // 显示 world

        String s = "hello";
        String t = s;
        s = "world";
        System.out.println(t); // t是"hello"还是"world"?
    }
}
